import request from '@/plugins/request'
//栏目列表
export function articleList (data) {
    return request({
        url: '/v1/content/lists/lists',
        method: 'get',
        params: data
    })
}

//栏目父级栏目列表
export function parentLists (data) {
    return request({
        url: '/v1/content/lists/parent-lists',
        method: 'get',
        params:data
    });
}
//栏目列表新增,编辑
export function listsCreate (data) {
    return request({
        url: '/v1/content/lists/lists-create',
        method: 'post',
        data
    });
}
//栏目列表删除
export function listsDelete (data) {
    return request({
        url: '/v1/content/lists/lists-delete',
        method: 'post',
        data
    });
}

//文章列表
export function arcList (data) {
    return request({
        url: '/v1/content/arc/get-list',
        method: 'get',
        params:data
    });
}
//文章新增时筛选条件
export function arcCondition (data) {
    return request({
        url: '/v1/content/arc/arc-condition',
        method: 'get',
        params:data
    });
}
//文章新增、编辑
export function arcCreate (data) {
    return request({
        url: '/v1/content/arc/arc-create',
        method: 'post',
        data
    });
}
//文章删除
export function arcDel (data) {
    return request({
        url: '/v1/content/arc/arc-del',
        method: 'post',
        data
    });
}

//专家评价列表
export function expertList (data) {
    return request({
        url: '/v1/content/expert/lists',
        method: 'get',
        params:data
    });
}
//专家评价新增、编辑
export function expertCreate (data) {
    return request({
        url: '/v1/content/expert/create',
        method: 'post',
        data
    });
}
//专家评价删除
export function expertDel (data) {
    return request({
        url: '/v1/content/expert/expert-delete',
        method: 'post',
        data
    });
}
//医生列表
export function doctorList (data) {
    return request({
        url: '/v1/doctor/doctor/backend-list',
        method: 'get',
        params:data
    });
}
//医生列表新增
export function addDoctor (data) {    
    return request({
        url: '/v1/doctor/doctor/create',
        method: 'post',
        data
    });
}
//医生列表编辑
export function updateDoctor (data) {
    return request({
        url: '/v1/doctor/doctor/update',
        method: 'post',
        data
    });
}
//医生列表删除
export function delDoctor (data) {
    return request({
        url: '/v1/doctor/doctor/delete',
        method: 'post',
        data
    });
}
//医生详情
export function doctorDetial (data) {
    return request({
        url: '/v1/doctor/doctor/backend-info',
        method: 'get',
        params:data
    });
}
//医生排班表
export function planList (data) {
    return request({
        url: '/v1/doctor/doctor/backend-plan-list',
        method: 'get',
        params:data
    });
}
//医生排班修改
export function editPlanWork (data) {
    return request({
        url: '/v1/doctor/doctor/edit-plan-work',
        method: 'post',
        data
    });
}

//帮助中心列表
export function problemList (data) {
    return request({
        url: '/v1/base/problem/index',
        method: 'get',
        params: data
    })
}
//帮助中心新增、编辑
export function problemAddUpdate (data) {
    return request({
        url: '/v1/base/problem/update-problem',
        method: 'post',
        data
    })
}
//帮助中心删除
export function problemDel (data) {
    return request({
        url: '/v1/base/problem/delete-problem',
        method: 'post',
        data
    });
}

//活动列表
export function activeList (data) {
    return request({
        url: '/v1/active/active/backend-list',
        method: 'get',
        params:data
    });
}
//活动列表详情
export function activeDetial (data) {
    return request({
        url: '/v1/active/active/backend-info',
        method: 'get',
        params:data
    });
}
//活动新增
export function addActive (data) {
    return request({
        url: '/v1/active/active/create',
        method: 'post',
        data
    });
}
//活动编辑
export function updateActive (data) {
    return request({
        url: '/v1/active/active/update',
        method: 'post',
        data
    });
}
//活动删除
export function delActive (data) {
    return request({
        url: '/v1/active/active/delete',
        method: 'post',
        data
    });
}
// 视频类型列表
export function videoTypeList (data) {
    return request({
        url: '/v1/base/video-type/lists',
        method: 'get',
        params:data
    });
}
// 新增/编辑视频类型
export function videoTypeHandle (data) {
    return request({
        url: '/v1/base/video-type/video-type-handle',
        method: 'post',
        data
    });
}
// 删除类型
export function videoTypeDel (data) {
    return request({
        url: '/v1/base/video-type/video-type-del',
        method: 'post',
        data
    });
}
// 模板列表
export function listTemplate (data) {
    return request({
        url: '/v1/template/template/list-template',
        method: 'get',
        params:data
    });
}
// 新增模板
export function addTemplate (data) {
    return request({
        url: '/v1/template/template/add-template',
        method: 'post',
        data
    });
}
// 更新模板
export function updateTemplate (data) {
    return request({
        url: '/v1/template/template/update-template',
        method: 'post',
        data
    });
}
// 删除模板
export function delTemplate (data) {
    return request({
        url: '/v1/template/template/del-template',
        method: 'post',
        data
    });
}
// 项目列表
export function projectList (data) {
    return request({
        url: '/v1/base/project/index',
        method: 'get',
        params:data
    });
}
// 新增项目
export function createProject (data) {
    return request({
        url: '/v1/base/project/create-project',
        method: 'post',
        data
    });
}
// 新增项目
export function updateProject (data) {
    return request({
        url: '/v1/base/project/update-project',
        method: 'post',
        data
    });
}
// 项目下人员列表
export function getMemberList (data) {
    return request({
        url: '/v1/base/project/get-member-list',
        method: 'get',
        params:data
    });
}
// 设置项目管理员
export function updateProjectLeader (data) {
    return request({
        url: '/v1/base/project/update-project-leader',
        method: 'post',
        data
    });
}

// 集团-人员列表
export function getUserList (data) {
    return request({
        url: '/v1/member/bloc-member/get-list',
        method: 'get',
        params:data
    });
}
// 集团-添加员工
export function addUserList (data) {
    return request({
        url: '/v1/member/bloc-member/member-add',
        method: 'post',
        data
    });
}
// 集团-编辑员工
export function editUserList (data) {
    return request({
        url: '/v1/member/bloc-member/member-edit',
        method: 'post',
        data
    });
}
// 集团-删除员工
export function delUserList (data) {
    return request({
        url: '/v1/member/bloc-member/member-del',
        method: 'post',
        data
    });
}

// 模块管理-模块列表
export function getModuleList (data) {
    return request({
        url: '/v1/base/module/backend-list',
        method: 'get',
        params:data
    });
}
// 模块管理-模块详情
export function getModuleInfo (data) {
    return request({
        url: '/v1/base/module/backend-info',
        method: 'get',
        params:data
    });
}
// 模块管理-更新模块
export function updateModuleInfo (data) {
    return request({
        url: '/v1/base/module/update',
        method: 'post',
        data
    });
}

// 用户个人中心
export function rbacmemberselfinfo (data) {
    return request({
        url: '/v1/member/index/self-info',
        method: 'get',
        params:data
    });
}
// 更新用户信息
export function rbacmembereditinfo (data) {
    return request({
        url: '/v1/member/index/edit-info',
        method: 'post',
        data
    });
}
// 更新密码
export function rbacmemberchangepassword (data) {
    return request({
        url: '/v1/member/index/change-password',
        method: 'post',
        data
    });
}